#include <iostream>
using std::cout ; 
using std::endl ; 

#include <sstream>
using std::ostringstream ; 

#include "DoubleType.hpp"

DoubleType::DoubleType(double* variable,string flag, string shortDescription,double defaultValue,string longDescription,string group,int order ) 
{
	 mFlag = flag ;  
	 mShortDescription = shortDescription ; 
   mDefaultValue = defaultValue ; 
	 mLongDescription = longDescription ; 
	 mGroup = group ; 
	 mOrder = order ; 
	 mValue = variable ; 
}


void DoubleType::setDouble(double doubleValue) 
{
	 *mValue = doubleValue ; 
}

string DoubleType::getValueAsString() 
{
	if(mValue==NULL){
		return "NULL" ; 
	}
	ostringstream outStream ; 
	outStream << *mValue; 
	return outStream.str() ; 
}


string DoubleType::getDefaultAsString()   
{
	ostringstream outStream ; 
	outStream << mDefaultValue ; 
	return outStream.str() ; 
}


// -*- C++ -*-

// (C) 2006 by Nathan Dunn, <ndunn@mac.com>


